﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MvcMusicStore.Models;

namespace MvcMusicStore.Repositories
{
    public class AlbumRepository
    {
        public MusicStoreEntities Context { get; private set; }

        public AlbumRepository(MusicStoreEntities ct)
        {
            Context = ct;
        }

        public List<Album> GetAll()
        {
            throw new NotImplementedException();
        }

        public Album GetById(int id)
        {
            return Context.Albums.FirstOrDefault(s => s.AlbumId == id);
        }

        public decimal GetPrice(int id)
        {
            return Context.Albums.Find(id).Price;
        }

        public void Add(Album item)
        {
            throw new NotImplementedException();
        }

        public void Edit(Album item)
        {
            throw new NotImplementedException();
        }

        public void Delete(int id)
        {
            throw new NotImplementedException();
        }

        public List<Album> GetPager(int pageIndex, int pageSize)
        {
            throw new NotImplementedException();
        }
    }
}